<template>
  <div>
    <el-row type="flex" class="row-bg" justify="center">
      <el-col :span="8">姓名：{{ childmessage.fullName }}</el-col>
      <el-col :span="2"></el-col>
      <el-col :span="8"><img :src="childmessage.avatar" alt="" style="width: 100px; height: 140px" /></el-col>
    </el-row>
    <el-row type="flex" class="row-bg" justify="center">
      <el-col :span="8">电话：{{ childmessage.phone }}</el-col>
      <el-col :span="2"></el-col>
      <el-col :span="8">账号：{{ childmessage.account }}</el-col>
    </el-row>
    <el-row type="flex" class="row-bg" justify="center">
      <el-col :span="8">密码：{{ childmessage.password }}</el-col>
      <el-col :span="2"></el-col>
      <el-col :span="8">身份证：{{ childmessage.idCard }}</el-col>
    </el-row>
    <el-row type="flex" class="row-bg" justify="center">
      <el-col :span="8">角色：{{ childmessage.roleName }}</el-col>
      <el-col :span="2"></el-col>
      <el-col :span="8" v-show="childmessage.gridName">所在区域：{{ childmessage.gridName }}</el-col>
      <el-col :span="8" v-show="!childmessage.gridName"></el-col>
    </el-row>
    <el-row type="flex" class="row-bg" justify="center">
      <el-col :span="8">海康通讯号码：{{ childmessage.haikangNumber }}</el-col>
      <el-col :span="2"></el-col>
      <el-col :span="8"></el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  props: {
    childmessage: {
      type: Object,
      default() {
        return {}
      },
    },
  },
  data() {
    return {}
  },
}
</script>

<style lang="scss" scoped>
.el-row {
  font-size: 14px;
  margin-bottom: 20px;
  &:last-child {
    margin-bottom: 0;
  }
}
.el-col {
  border-radius: 4px;
}
.grid-content {
  border-radius: 4px;
  min-height: 36px;
}
.row-bg {
  padding: 10px 0;
}
</style>
